/**
 *@author zhiliang.lan
 *@version 2017年7月8日 上午10:19:51
 */
package models.common.bean;


/**
 *@author zhiliang.lan
 *@version 2017年7月8日 上午10:19:51
 */

public class PackingFile {

	//文件名
	public String fileName;
	
	
	//文件路径
	public String filePath;
	
	public PackingFile(String fileName, String filePath){
		super();
		this.fileName = fileName;
		this.filePath = filePath;
	}
	
	//接受的文件类型仅限于上下述类型
	//String[] suffexs = {"jpg","jpeg","png","gif","zip","7z","rar","doc","docx","xlsx","xls","pdf"};
	//组装文件
	public PackingFile packiFile(String fileName, String filePath) {
		
		String[] suffexs = {"jpg","jpeg","png","gif","zip","7z","rar","doc","docx","xlsx","xls","pdf"};
		
		PackingFile packingFile = new PackingFile(filePath, filePath);
		packingFile.fileName = fileName;
		packingFile.filePath = filePath;
		
		return packingFile;
	}
	
}
